# -*- encoding:utf-8 -*-
from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 5
_modified_time = 1287509374.4113491
_template_filename='/Users/joeldunham/old/onlinelinguisticdatabase/templates/derived/settings/edit.html'
_template_uri='/derived/settings/edit.html'
_template_cache=cache.Cache(__name__, _modified_time)
_source_encoding='utf-8'
from webhelpers.html import escape
_exports = ['writeJavascriptToHead', 'heading']


def _mako_get_namespace(context, name):
    try:
        return context.namespaces[(__name__, name)]
    except KeyError:
        _mako_generate_namespaces(context)
        return context.namespaces[(__name__, name)]
def _mako_generate_namespaces(context):
    # SOURCE LINE 1
    ns = runtime.Namespace(u'helper', context._clean_inheritance_tokens(), templateuri=u'/base/helper.html', callables=None, calling_uri=_template_uri, module=None)
    context.namespaces[(__name__, u'helper')] = ns

    # SOURCE LINE 7
    ns = runtime.Namespace(u'javascriptDefs', context._clean_inheritance_tokens(), templateuri=u'/base/javascriptDefs.html', callables=None, calling_uri=_template_uri, module=None)
    context.namespaces[(__name__, u'javascriptDefs')] = ns

def _mako_inherit(template, context):
    _mako_generate_namespaces(context)
    return runtime._inherit_from(context, u'/base/index.html', _template_uri)
def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        _import_ns = {}
        _mako_get_namespace(context, u'helper')._populate(_import_ns, [u'OLOrthographySpecifyingHelp', u'MLOrthographySpecifyingHelp', u'ISO_639Help', u'objectLanguageNameHelp', u'storageOrthographyHelp', u'defaultInputOrthographyHelp', u'defaultOutputOrthographyHelp', u'orthographyNameHelp', u'OLOrthographyHelp', u'metaLanguageNameHelp', u'headerImageHelp'])
        _mako_get_namespace(context, u'javascriptDefs')._populate(_import_ns, [u'getMatchingLanguagesScript', u'getToggleDivByTextInputScripts'])
        headerImageHelp = _import_ns.get('headerImageHelp', context.get('headerImageHelp', UNDEFINED))
        ISO_639Help = _import_ns.get('ISO_639Help', context.get('ISO_639Help', UNDEFINED))
        url = _import_ns.get('url', context.get('url', UNDEFINED))
        h = _import_ns.get('h', context.get('h', UNDEFINED))
        c = _import_ns.get('c', context.get('c', UNDEFINED))
        MLOrthographySpecifyingHelp = _import_ns.get('MLOrthographySpecifyingHelp', context.get('MLOrthographySpecifyingHelp', UNDEFINED))
        objectLanguageNameHelp = _import_ns.get('objectLanguageNameHelp', context.get('objectLanguageNameHelp', UNDEFINED))
        range = _import_ns.get('range', context.get('range', UNDEFINED))
        orthographyNameHelp = _import_ns.get('orthographyNameHelp', context.get('orthographyNameHelp', UNDEFINED))
        metaLanguageNameHelp = _import_ns.get('metaLanguageNameHelp', context.get('metaLanguageNameHelp', UNDEFINED))
        str = _import_ns.get('str', context.get('str', UNDEFINED))
        OLOrthographyHelp = _import_ns.get('OLOrthographyHelp', context.get('OLOrthographyHelp', UNDEFINED))
        __M_writer = context.writer()
        # SOURCE LINE 5
        __M_writer(u'\n\n')
        # SOURCE LINE 8
        __M_writer(u'\n\n')
        # SOURCE LINE 10
        __M_writer(u'\n\n\n')
        # SOURCE LINE 13
 
        sUrl = url(controller='settings', action='getmatchinglanguages') 
        
        
        __M_locals_builtin_stored = __M_locals_builtin()
        __M_locals.update(__M_dict_builtin([(__M_key, __M_locals_builtin_stored[__M_key]) for __M_key in ['sUrl'] if __M_key in __M_locals_builtin_stored]))
        # SOURCE LINE 15
        __M_writer(u'\n\n')
        # SOURCE LINE 20
        __M_writer(u'\n \n')
        # SOURCE LINE 24
        __M_writer(u'\n\n<p>This page permits editing of system-wide application settings. ')
        # SOURCE LINE 27
        __M_writer(u'Only administrators should alter these settings.</p>\n\n<form class="formTable" ')
        # SOURCE LINE 30
        __M_writer(u'      action="')
        __M_writer(escape(url(controller='settings', action='save')))
        __M_writer(u'" method="post">\n    <fieldset>\n    <legend>Object Language</legend>\n    <ol>\n     <li>\n      <p>Name ')
        # SOURCE LINE 35
        __M_writer(escape(objectLanguageNameHelp()))
        __M_writer(u'</p>\n      <input id="OLName" maxlength="255" style="width:500px;" name="OLName" ')
        # SOURCE LINE 37
        __M_writer(u'             tabindex="1" type="text" ')
        # SOURCE LINE 38
        __M_writer(u'             onkeyup="getMatchingLanguages(\'')
        __M_writer(escape(sUrl))
        __M_writer(u'\', \'OLName\', \'Ref_Name\');" ')
        # SOURCE LINE 39
        __M_writer(u'             onfocus="divOn(\'OLNameSuggestion\'); applyFuncToAll(divOff, ')
        # SOURCE LINE 40
        __M_writer(u'             [\'OLIdSuggestion\', \'MLNameSuggestion\', \'MLIdSuggestion\']);" />\n      <div class="suggestion" id="OLNameSuggestion"></div>\n     </li>\n     <li>\n      <p>ISO 639-3 Code ')
        # SOURCE LINE 44
        __M_writer(escape(ISO_639Help()))
        __M_writer(u'</p>\n      <input id="OLId" maxlength="255" style="width:500px;" name="OLId" ')
        # SOURCE LINE 46
        __M_writer(u'             tabindex="2" type="text" ')
        # SOURCE LINE 47
        __M_writer(u'             onkeyup="getMatchingLanguages(\'')
        __M_writer(escape(sUrl))
        __M_writer(u'\', \'OLId\', \'Id\');" ')
        # SOURCE LINE 48
        __M_writer(u'             onfocus="divOn(\'OLIdSuggestion\'); applyFuncToAll(divOff, ')
        # SOURCE LINE 49
        __M_writer(u'             [\'OLNameSuggestion\', \'MLNameSuggestion\', \'MLIdSuggestion\']);" />\n      <div class="suggestion" id="OLIdSuggestion"></div>\n     </li>\n    </ol>\n    </fieldset>\n    \n    <fieldset>\n    <legend>\n        Object Language Orthographies\n    </legend>\n    \n    <input type=\'hidden\' id=\'OLOrthographiesWarning\' ')
        # SOURCE LINE 61
        __M_writer(u"           name='OLOrthographiesWarning' />\n    \n    <ol>\n     <li>\n      <p>Here you can specify up to five orthographies for your object language.")
        # SOURCE LINE 66
        __M_writer(u'      Specifying multiple object language orthographies allows the option of ')
        # SOURCE LINE 67
        __M_writer(u'      storing, viewing and entering object language data in different ')
        # SOURCE LINE 68
        __M_writer(u'      orthographies.</p> ')
        # SOURCE LINE 69
        __M_writer(u'      ')
        # SOURCE LINE 70
        __M_writer(u'      <p>Choose one object language orthography as the storage orthography. ')
        # SOURCE LINE 71
        __M_writer(u'      All object language strings in the database will be stored in this ')
        # SOURCE LINE 72
        __M_writer(u'      orthography.  Choose a storage orthography when the application ')
        # SOURCE LINE 73
        __M_writer(u'      is initially set up and do not alter it afterwards.</p> ')
        # SOURCE LINE 74
        __M_writer(u'      ')
        # SOURCE LINE 75
        __M_writer(u'      <p>Choose an object language orthography as the default input ')
        # SOURCE LINE 76
        __M_writer(u'      orthography. By default, this is the orthography that users will use ')
        # SOURCE LINE 77
        __M_writer(u'      when entering and searching for object language data.  When entering ')
        # SOURCE LINE 78
        __M_writer(u'      object language data (or searching it), the system will automatically ')
        # SOURCE LINE 79
        __M_writer(u'      translate the input into the storage orthography.</p> ')
        # SOURCE LINE 80
        __M_writer(u'      ')
        # SOURCE LINE 81
        __M_writer(u'      <p>Choose an object language orthography as the default output ')
        # SOURCE LINE 82
        __M_writer(u'      orthography.  By default, this is the orthography that will be used to ')
        # SOURCE LINE 83
        __M_writer(u'      display object language data.</p> ')
        # SOURCE LINE 84
        __M_writer(u'      ')
        # SOURCE LINE 85
        __M_writer(u'      <p>If you want the default to be that users enter, view and search object ')
        # SOURCE LINE 86
        __M_writer(u'      language data all in the same orthography (recommended), then simply ')
        # SOURCE LINE 87
        __M_writer(u'      choose the same orthography as your storage, default input and default ')
        # SOURCE LINE 88
        __M_writer(u'      output orthographies.</p>\n    \n      <a class="buttonLink" id="addRemoveOLO" tabindex=4 ')
        # SOURCE LINE 91
        __M_writer(u'      onclick="addRemoveElement(\'OLOrthographies\',\'addRemoveOLO\',')
        # SOURCE LINE 92
        __M_writer(u'      \'object language orthographies settings\')">+</a>\n     </li>\n    </ol>\n    \n    <div id="OLOrthographies" style="display:none;">\n      ')
        # SOURCE LINE 97

        OLOOptions = ['Object Language Orthography %s' % str(i) for i in \
                     range(1,6)]
              
        
        __M_locals_builtin_stored = __M_locals_builtin()
        __M_locals.update(__M_dict_builtin([(__M_key, __M_locals_builtin_stored[__M_key]) for __M_key in ['i','OLOOptions'] if __M_key in __M_locals_builtin_stored]))
        # SOURCE LINE 100
        __M_writer(u'\n    <ol>\n        \n     <li>\n      <p>Storage Orthography</p>\n      ')
        # SOURCE LINE 105
        __M_writer(escape(h.select(name='storageOrthography', selected_values='',\
      options=OLOOptions, tabindex=4)))
        # SOURCE LINE 106
        __M_writer(u'\n     </li>\n     \n     <li>\n      <p>Default Input Orthography</p>\n      ')
        # SOURCE LINE 111
        __M_writer(escape(h.select(name='defaultInputOrthography', selected_values='',\
      options=OLOOptions , tabindex=4)))
        # SOURCE LINE 112
        __M_writer(u'\n     </li>\n     \n     <li>\n      <p>Default Output Orthography</p>\n      ')
        # SOURCE LINE 117
        __M_writer(escape(h.select(name='defaultOutputOrthography', selected_values='',\
      options=OLOOptions , tabindex=4)))
        # SOURCE LINE 118
        __M_writer(u'\n     </li>\n\n    </ol>\n    \n    <fieldset class="innerFieldset">\n    <ol>\n     <legend>\n        Oblect Language Orthography 1\n     </legend>\n     <li>\n      <p>Name ')
        # SOURCE LINE 129
        __M_writer(escape(orthographyNameHelp()))
        __M_writer(u'</p>\n      <input id="objectLanguageOrthography1Name" maxlength="255" ')
        # SOURCE LINE 131
        __M_writer(u'             style="width:500px;" name="objectLanguageOrthography1Name" ')
        # SOURCE LINE 132
        __M_writer(u'             tabindex="4" type="text" />\n     </li>\n     <li>\n      <p>Orthography ')
        # SOURCE LINE 135
        __M_writer(escape(OLOrthographyHelp()))
        __M_writer(u'</p>\n      <textarea id="objectLanguageOrthography1" ')
        # SOURCE LINE 137
        __M_writer(u'                name="objectLanguageOrthography1" rows="5" ')
        # SOURCE LINE 138
        __M_writer(u'                cols="80" tabindex="5"></textarea>\n     </li>\n     <li>\n      <p>Optional Parameters</p>\n        <p>\n         <input id=\'OLO1Lowercase\' name=\'OLO1Lowercase\' type="checkbox" ')
        # SOURCE LINE 144
        __M_writer(u"                value='1' />\n         Only lowercase graphs are used in this orthography. Default is true. ")
        # SOURCE LINE 146
        __M_writer(u'         (If this checkbox is deselected, the OLD will try to guess uppercase ')
        # SOURCE LINE 147
        __M_writer(u"         alternants of the graphs in this orthography.)\n        </p>\n        <p>\n         <input id='OLO1InitialGlottalStops' name='OLO1InitialGlottalStops' ")
        # SOURCE LINE 151
        __M_writer(u'                type="checkbox" value=\'1\' />\n         Glottal stops are written at the beginning of a word. Default is true. ')
        # SOURCE LINE 153
        __M_writer(u'         (If this checkbox is deselected, the OLD will remove initial glottal ')
        # SOURCE LINE 154
        __M_writer(u'         stops when translating strings into this orthography.)\n        </p>\n     </li>\n    </ol>\n    </fieldset>\n    \n    <fieldset class="innerFieldset">\n    <ol>\n     <legend>\n        Oblect Language Orthography 2\n     </legend>\n     <li>\n      <p>Name ')
        # SOURCE LINE 166
        __M_writer(escape(orthographyNameHelp()))
        __M_writer(u'</p>\n      <input id="objectLanguageOrthography2Name" maxlength="255" ')
        # SOURCE LINE 168
        __M_writer(u'             style="width:500px;" name="objectLanguageOrthography2Name" ')
        # SOURCE LINE 169
        __M_writer(u'             tabindex="6" type="text" />\n     </li>\n     <li>\n      <p>Orthography ')
        # SOURCE LINE 172
        __M_writer(escape(OLOrthographyHelp()))
        __M_writer(u'</p>\n      <textarea id="objectLanguageOrthography2" ')
        # SOURCE LINE 174
        __M_writer(u'                name="objectLanguageOrthography2" rows="5" ')
        # SOURCE LINE 175
        __M_writer(u'                cols="80" tabindex="7"></textarea>\n     </li>\n     <li>\n      <p>Optional Parameters</p>\n        <p>\n         <input id=\'OLO2Lowercase\' name=\'OLO2Lowercase\' type="checkbox" ')
        # SOURCE LINE 181
        __M_writer(u"                value='1' />\n         Only lowercase graphs are used in this orthography. Default is true. ")
        # SOURCE LINE 183
        __M_writer(u'         (If this checkbox is deselected, the OLD will try to guess uppercase ')
        # SOURCE LINE 184
        __M_writer(u"         alternants of the graphs in this orthography.)\n        </p>\n        <p>\n         <input id='OLO2InitialGlottalStops' name='OLO2InitialGlottalStops' ")
        # SOURCE LINE 188
        __M_writer(u'                type="checkbox" value=\'1\' />\n         Glottal stops are written at the beginning of a word. Default is true. ')
        # SOURCE LINE 190
        __M_writer(u'         (If this checkbox is deselected, the OLD will remove initial glottal ')
        # SOURCE LINE 191
        __M_writer(u'         stops when translating strings into this orthography.)\n        </p>\n     </li>\n    </ol>\n    </fieldset>\n     \n    <fieldset class="innerFieldset">\n    <ol>\n     <legend>\n        Oblect Language Orthography 3\n     </legend>\n     <li>\n      <p>Name ')
        # SOURCE LINE 203
        __M_writer(escape(orthographyNameHelp()))
        __M_writer(u'</p>\n      <input id="objectLanguageOrthography3Name" maxlength="255" ')
        # SOURCE LINE 205
        __M_writer(u'             style="width:500px;" name="objectLanguageOrthography3Name" ')
        # SOURCE LINE 206
        __M_writer(u'             tabindex="8" type="text" />\n     </li>\n     <li>\n      <p>Orthography ')
        # SOURCE LINE 209
        __M_writer(escape(OLOrthographyHelp()))
        __M_writer(u'</p>\n      <textarea id="objectLanguageOrthography3" ')
        # SOURCE LINE 211
        __M_writer(u'                name="objectLanguageOrthography3" rows="5" ')
        # SOURCE LINE 212
        __M_writer(u'                cols="80" tabindex="9"></textarea>\n     </li>\n     <li>\n      <p>Optional Parameters</p>\n        <p>\n         <input id=\'OLO3Lowercase\' name=\'OLO3Lowercase\' type="checkbox"')
        # SOURCE LINE 218
        __M_writer(u"                value='1' />\n         Only lowercase graphs are used in this orthography. Default is true. ")
        # SOURCE LINE 220
        __M_writer(u'         (If this checkbox is deselected, the OLD will try to guess uppercase ')
        # SOURCE LINE 221
        __M_writer(u"         alternants of the graphs in this orthography.)\n        </p>\n        <p>\n         <input id='OLO3InitialGlottalStops' name='OLO3InitialGlottalStops' ")
        # SOURCE LINE 225
        __M_writer(u'                type="checkbox" value=\'1\' />\n         Glottal stops are written at the beginning of a word. Default is true. ')
        # SOURCE LINE 227
        __M_writer(u'         (If this checkbox is deselected, the OLD will remove initial glottal ')
        # SOURCE LINE 228
        __M_writer(u'         stops when translating strings into this orthography.)\n        </p>\n     </li>\n    </ol>\n    </fieldset>\n     \n    <fieldset class="innerFieldset">\n    <ol>\n     <legend>\n        Oblect Language Orthography 4\n     </legend>\n     <li>\n      <p>Name ')
        # SOURCE LINE 240
        __M_writer(escape(orthographyNameHelp()))
        __M_writer(u'</p>\n      <input id="objectLanguageOrthography4Name" maxlength="255" ')
        # SOURCE LINE 242
        __M_writer(u'             style="width:500px;" name="objectLanguageOrthography4Name" ')
        # SOURCE LINE 243
        __M_writer(u'             tabindex="10" type="text" />\n     </li>\n     <li>\n      <p>Orthography ')
        # SOURCE LINE 246
        __M_writer(escape(OLOrthographyHelp()))
        __M_writer(u'</p>\n      <textarea id="objectLanguageOrthography4" ')
        # SOURCE LINE 248
        __M_writer(u'                name="objectLanguageOrthography4" rows="5" ')
        # SOURCE LINE 249
        __M_writer(u'                cols="80" tabindex="11"></textarea>\n     </li>\n     <li>\n      <p>Optional Parameters</p>\n        <p>\n         <input id=\'OLO4Lowercase\' name=\'OLO4Lowercase\' type="checkbox" ')
        # SOURCE LINE 255
        __M_writer(u"                value='1' />\n         Only lowercase graphs are used in this orthography. Default is true. ")
        # SOURCE LINE 257
        __M_writer(u'         (If this checkbox is deselected, the OLD will try to guess uppercase ')
        # SOURCE LINE 258
        __M_writer(u"         alternants of the graphs in this orthography.)\n        </p>\n        <p>\n         <input id='OLO4InitialGlottalStops' name='OLO4InitialGlottalStops' ")
        # SOURCE LINE 262
        __M_writer(u'                type="checkbox" value=\'1\' />\n         Glottal stops are written at the beginning of a word. Default is true. ')
        # SOURCE LINE 264
        __M_writer(u'         (If this checkbox is deselected, the OLD will remove initial glottal ')
        # SOURCE LINE 265
        __M_writer(u'         stops when translating strings into this orthography.)\n        </p>\n     </li>\n    </ol>\n    </fieldset>\n\n    <fieldset class="innerFieldset">\n    <ol>\n     <legend>\n        Oblect Language Orthography 5\n     </legend>\n     <li>\n      <p>Name ')
        # SOURCE LINE 277
        __M_writer(escape(orthographyNameHelp()))
        __M_writer(u'</p>\n      <input id="objectLanguageOrthography5Name" maxlength="255" ')
        # SOURCE LINE 279
        __M_writer(u'             style="width:500px;" name="objectLanguageOrthography5Name" ')
        # SOURCE LINE 280
        __M_writer(u'             tabindex="12" type="text" />\n     </li>\n     <li>\n      <p>Orthography ')
        # SOURCE LINE 283
        __M_writer(escape(OLOrthographyHelp()))
        __M_writer(u'</p>\n      <textarea id="objectLanguageOrthography5" ')
        # SOURCE LINE 285
        __M_writer(u'                name="objectLanguageOrthography5" rows="5" ')
        # SOURCE LINE 286
        __M_writer(u'                cols="80" tabindex="13"></textarea>\n     </li>\n     <li>\n      <p>Optional Parameters</p>\n        <p>\n         <input id=\'OLO5Lowercase\' name=\'OLO5Lowercase\' type="checkbox" ')
        # SOURCE LINE 292
        __M_writer(u"                value='1' />\n         Only lowercase graphs are used in this orthography. Default is true. ")
        # SOURCE LINE 294
        __M_writer(u'         (If this checkbox is deselected, the OLD will try to guess uppercase ')
        # SOURCE LINE 295
        __M_writer(u"         alternants of the graphs in this orthography.)\n        </p>\n        <p>\n         <input id='OLO5InitialGlottalStops' name='OLO5InitialGlottalStops' ")
        # SOURCE LINE 299
        __M_writer(u'                type="checkbox" value=\'1\' />\n         Glottal stops are written at the beginning of a word. Default is true. ')
        # SOURCE LINE 301
        __M_writer(u'         (If this checkbox is deselected, the OLD will remove initial glottal ')
        # SOURCE LINE 302
        __M_writer(u'         stops when translating strings into this orthography.)\n        </p>\n     </li>\n    </ol>\n    </fieldset>\n\n    </div>\n    </fieldset>\n\n\n    <fieldset>\n    <legend>Object Language Strings</legend>\n    <ol>\n     <li>\n      <p>The system should assume that the morpheme break data of a Form is\n      an object language string and should therefore be converted to the\n      storage orthography for storage and to the output orthography for display.\n      </p>\n      ')
        # SOURCE LINE 320
        __M_writer(escape(h.select(name='morphemeBreakIsObjectLanguageString', selected_values='', \
                      options=[u'yes', u'no'], tabindex=13)))
        # SOURCE LINE 321
        __M_writer(u'\n     </li>\n    </ol>\n    </fieldset>\n\n\n    <fieldset>\n    <legend>Metalanguage</legend>\n    <ol>\n     <li>\n      <p>Name ')
        # SOURCE LINE 331
        __M_writer(escape(metaLanguageNameHelp()))
        __M_writer(u'</p>\n      <input id="MLName" maxlength="255" style="width:500px;" name="MLName" ')
        # SOURCE LINE 333
        __M_writer(u'             tabindex="14" type="text" ')
        # SOURCE LINE 334
        __M_writer(u'             onkeyup="getMatchingLanguages(\'')
        __M_writer(escape(sUrl))
        __M_writer(u'\', \'MLName\', \'Ref_Name\');" ')
        # SOURCE LINE 335
        __M_writer(u'             onfocus="divOn(\'MLNameSuggestion\'); applyFuncToAll(divOff, ')
        # SOURCE LINE 336
        __M_writer(u'             [\'OLIdSuggestion\', \'OLNameSuggestion\', \'MLIdSuggestion\']);" />\n      <div class="suggestion" id="MLNameSuggestion"></div>\n     </li>\n     <li>\n      <p>ISO 639-3 code ')
        # SOURCE LINE 340
        __M_writer(escape(ISO_639Help()))
        __M_writer(u'</p>\n      <input id="MLId" maxlength="255" style="width:500px;" name="MLId" ')
        # SOURCE LINE 342
        __M_writer(u'             tabindex="15" type="text" ')
        # SOURCE LINE 343
        __M_writer(u'             onkeyup="getMatchingLanguages(\'')
        __M_writer(escape(sUrl))
        __M_writer(u'\', \'MLId\', \'Id\');" ')
        # SOURCE LINE 344
        __M_writer(u'             onfocus="divOn(\'MLIdSuggestion\'); applyFuncToAll(divOff, ')
        # SOURCE LINE 345
        __M_writer(u'             [\'OLIdSuggestion\', \'OLNameSuggestion\', \'MLNameSuggestion\']);" />\n      <div class="suggestion" id="MLIdSuggestion"></div>\n     </li>   \n     <li>\n      <p>Orthography - characters used to transcribe the metalanguage. ')
        # SOURCE LINE 350
        __M_writer(u'      ')
        __M_writer(escape(MLOrthographySpecifyingHelp()))
        __M_writer(u'</p>\n      <textarea id="MLOrthography" name="MLOrthography" rows="5" cols="80" ')
        # SOURCE LINE 352
        __M_writer(u'                tabindex="16"></textarea>\n     </li>       \n    </ol>\n    </fieldset>\n    \n    <fieldset>\n    <legend>Appearance</legend>\n    <ol>\n     <li>\n      <p>Header image - name of an image File for the header background ')
        # SOURCE LINE 362
        __M_writer(u'      ')
        __M_writer(escape(headerImageHelp()))
        __M_writer(u'</p>\n      <input id="headerImageName" name="headerImageName" tabindex="17" />\n     </li>\n     <li>\n      <p>CSS colors - name of a CSS file for the color scheme</p>\n      ')
        # SOURCE LINE 367
        __M_writer(escape(h.select(name='colorsCSS', selected_values='',\
      options=c.colorsCSSOptions, tabindex=16)))
        # SOURCE LINE 368
        __M_writer(u'\n     </li>\n    </ol>\n    </fieldset>\n    \n    <div>')
        # SOURCE LINE 373
        __M_writer(escape(h.submit(value="Save Changes", name='submit', tabindex=30)))
        __M_writer(u'</div>\n</form>\n\n ')
        return ''
    finally:
        context.caller_stack._pop_frame()


def render_writeJavascriptToHead(context):
    context.caller_stack._push_frame()
    try:
        _import_ns = {}
        _mako_get_namespace(context, u'helper')._populate(_import_ns, [u'OLOrthographySpecifyingHelp', u'MLOrthographySpecifyingHelp', u'ISO_639Help', u'objectLanguageNameHelp', u'storageOrthographyHelp', u'defaultInputOrthographyHelp', u'defaultOutputOrthographyHelp', u'orthographyNameHelp', u'OLOrthographyHelp', u'metaLanguageNameHelp', u'headerImageHelp'])
        _mako_get_namespace(context, u'javascriptDefs')._populate(_import_ns, [u'getMatchingLanguagesScript', u'getToggleDivByTextInputScripts'])
        getMatchingLanguagesScript = _import_ns.get('getMatchingLanguagesScript', context.get('getMatchingLanguagesScript', UNDEFINED))
        getToggleDivByTextInputScripts = _import_ns.get('getToggleDivByTextInputScripts', context.get('getToggleDivByTextInputScripts', UNDEFINED))
        __M_writer = context.writer()
        # SOURCE LINE 17
        __M_writer(u'\n    ')
        # SOURCE LINE 18
        __M_writer(escape(getMatchingLanguagesScript()))
        __M_writer(u'\n    ')
        # SOURCE LINE 19
        __M_writer(escape(getToggleDivByTextInputScripts()))
        __M_writer(u'\n')
        return ''
    finally:
        context.caller_stack._pop_frame()


def render_heading(context):
    context.caller_stack._push_frame()
    try:
        _import_ns = {}
        _mako_get_namespace(context, u'helper')._populate(_import_ns, [u'OLOrthographySpecifyingHelp', u'MLOrthographySpecifyingHelp', u'ISO_639Help', u'objectLanguageNameHelp', u'storageOrthographyHelp', u'defaultInputOrthographyHelp', u'defaultOutputOrthographyHelp', u'orthographyNameHelp', u'OLOrthographyHelp', u'metaLanguageNameHelp', u'headerImageHelp'])
        _mako_get_namespace(context, u'javascriptDefs')._populate(_import_ns, [u'getMatchingLanguagesScript', u'getToggleDivByTextInputScripts'])
        __M_writer = context.writer()
        # SOURCE LINE 22
        __M_writer(u'\n    <h1 class="heading">Editing Application Settings</h1>\n')
        return ''
    finally:
        context.caller_stack._pop_frame()


